<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>v-else 指令</title>
</head>
<body>
<div id="app">
    <div v-if="lang === 'eng'">show in English</div>
    <div v-else-if="lang === 'chs'">以中文显示</div>
    <div v-else>语言未匹配</div>
</div>
<script src="../../../../../js/vue.global.js"></script>
<script>
    const app = Vue.createApp({
        data(){
            return {
                lang:"chs",
            }
        },
        methods:{

        }
    })

    app.mount("#app")
</script>
</body>
</html>